#include <stdio.h>
#include <iostream>
using namespace std;

int main(){

	char test[4] = {0};
	
	int len = 1517;
	char des[2] = {0};
	
	
		
		
	sprintf(test,"%d",len);	
	test[0] = test[0]<<4;
	test[1] = test[1] & 0x0F;
	test[0] = test[0] | test[1];
	des[0] = test[0];
	test[2] = test[2]<<4;
	test[3] = test[3] & 0x0F;
	test[2] = test[2] | test[3];
	des[1] = test[2];
	
	
	
	printf("des %x %x\n",des[0],des[1]);
	
	printf("test %x %x %x %x\n",test[0],test[1],test[2],test[3]);
	

	return 0;
}
